package com.wang.designpattern.proxy.staticproxy;

public class Client {

    public static void main(String[] args) {
        // 1、创建TeacherDao对象
        TeacherDao teacherDao = new TeacherDao();


        // 2、创建TeacherDaoProxy代理对象

        // 3、将TeacherDao对象交给TeacherDaoProxy代理对象
        TeacherDaoProxy teacherDaoProxy = new TeacherDaoProxy(teacherDao);

        // 4、执行方法
        teacherDaoProxy.teach();
    }
}
